package lab01;

/**
 * Created by JAVA on 2017/9/30.
 */
import java.util.Scanner;
public class Test07 {
    public static void main(String[] args) {
       Scanner in=new Scanner(System.in) ;
        System.out.println("请输入你的成绩(成绩范围为1到100):");
        int score=in.nextInt();
        if(score>=85){
            System.out.println("A级");
        }else if(score>=70){
            System.out.println("B级");
        }else if(score>=60){
            System.out.println("C级");
        }else{
            System.out.println("D级");//用了if else嵌套语句来输出成绩的等级
        }
    }
}
